﻿@model KnowledgeCommunity.Model.Topic
           
@{
    ViewBag.Title = "公告详细";
}

<div class="path one columns"> 公告详细 </div>

<div class="columns three-fourths">
    <div class="post">
    <div class="postinfo">
        <div class="clear"></div>
        <div class="title">新闻检索</div>
        <br />
        <ul>
            <li><a href="@Url.Action("Index", "Topic")">News</a></li>
            <li><a href="@Url.Action("About", "Home")">About</a></li>
        </ul>
        
    </div>
    <div class="resume">
        <h3>公告内容</h3>
        @(new MvcHtmlString(Model.Content))
        <div class="clear"></div>
    </div>
    </div>
</div>

<div class="columns four_last">
    <div class="sidebar">
    <div class="title">公告标题： @Model.Title </div>
    <div class="title">发布时间： @Model.AddTime.ToString("yyyy-mm-dd") </div>
    <div class="title">发布者： @Model.EditUser </div>
    <div class="title">关注次数： @Model.ClickNum Times </div>
    @{
    if (HttpContext.Current.User.IsInRole("admin") || HttpContext.Current.User.IsInRole("editor"))
    {
        <ul>
            <li><a href="@Url.Action("Edit", "Topic", new { id=Model.Id})">编辑</a></li>
            <li><a href="@Url.Action("Delete", "Topic", new { id=Model.Id})">删除</a></li>
        </ul>
    }
    }
   </div>
</div>
<div class="clear"></div>
        

